package com.huilian.iotbox.data.service.impl;

import com.huilian.iotbox.data.dao.LedgerCommodityCommonDao;
import com.huilian.iotbox.data.po.LedgerCommodity;
import com.huilian.iotbox.data.service.LedgerCommodityCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LedgerCommodityCommonServiceImpl implements LedgerCommodityCommonService {

    @Autowired
    private LedgerCommodityCommonDao ledgerCommodityCommonDao;

    @Override
    public LedgerCommodity findOneByCommodityAndLedgerMerchantId(Long commodityId, Integer ledgerMerchantId) {
        return ledgerCommodityCommonDao.findOneByCommodityAndLedgerMerchantId(commodityId, ledgerMerchantId);
    }
}
